<a title="Close" class="boxy-close" href="javascript:void(0)" onclick="Boxy.get(this).hide();"></a>
<div class="wrap-edit-photo-folde" style="border-bottom: thin dashed black;">
    <form method='POST' action='<?php echo $this->baseUrl() ?>/service/add-folder/type/document/fid/<?php echo $this->folder->id ?>'>
        <span class='add-photo-label'>Folder Name: </span>
        <input type='text' name='name' value='<?php echo $this->folder->name ?>' style='padding: 7px 10px;'/>
        <input type='hidden' name="gi_id" value="<?php echo $this->folder->gi_id ?>"/>
        <input type='submit' value='Save' class='submit'/>
    </form>
</div>
<div class="wrap-folder-photos">
    <?php if ($this->docs): ?>
        <?php foreach ($this->docs as $doc): ?>
            <div class="<?php echo $doc['file_type'] ?> file-new">
                <span class='add-photo-label'>
                    <?php echo $doc['file_name'] ?>
                </span>
                <a href='javascript:void(0)' class='delete-file' onclick='deleteUploadFile(event, "<?php echo $doc['file'] ?>", <?php echo $doc['id'] ?>, "Docs")'>
                    <img src='<?php echo $this->baseUrl() ?>/public/images/delete.gif'>
                </a>
            </div>
        <?php endforeach; ?>
    <?php endif; ?>  
</div>